package com.pokeoffice.handlers;

import com.pokeoffice.interfaces.Command;
import com.pokeoffice.interfaces.Handler;
import com.pokeoffice.server.CommandQueue;

/**
 * The Class MySqlHandler.
 */
public class MySqlHandler implements Handler {
	
	/** The handler. */
	private static MySqlHandler handler = null;
	
	/** The command queue. */
	private CommandQueue commandQueue = null;
	
	/**
	 * Instantiates a new my sql handler.
	 */
	private MySqlHandler() {
		commandQueue = new CommandQueue();
	}
	
	/**
	 * Gets the.
	 *
	 * @return the my sql handler
	 */
	public static synchronized MySqlHandler get() {
		if (handler == null) {
			handler = new MySqlHandler();
		}
		
		return handler;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#clone()
	 */
	public Object clone() throws CloneNotSupportedException {
		throw new CloneNotSupportedException();
	}
	
	/* (non-Javadoc)
	 * @see com.pokeoffice.interfaces.Handler#handle(com.pokeoffice.interfaces.Command)
	 */
	public synchronized Object handle(Command c) {
		return null;
	}
	
}
